﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Threading;

namespace IDE_Week2_Forms_Project
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void BTCI_Click(object sender, EventArgs e)
        {
            Icon = Properties.Resources.Icon1;
        }

        private void BTRI_Click(object sender, EventArgs e)
        {
            Icon = default(Icon);
        }

        private void BTONF_Click(object sender, EventArgs e)
        {
            Form2 F2 = new Form2();
            F2.Show();
        }

        bool lang=true;
        private void button5_Click(object sender, EventArgs e)
        {
            string temp = "";
            if (lang)
            {
                temp = "nl-NL";
                lang = false;
            }
            else
            {
                temp = "en-US";
                lang = true;
            }
                foreach (Control c in this.Controls)
            {
                ComponentResourceManager resources =
                new ComponentResourceManager(typeof(Form1));
                resources.ApplyResources(c, c.Name, new CultureInfo(temp));
            }
        }

        private void BTCC1_Click(object sender, EventArgs e)
        {
            int[] numbers = new int[10];
            Class1.MakeRandomNumber(numbers);
            label1.Text = numbers[0] + ", " + numbers[1] + ", " + numbers[2];

        }
      }
    }
